for i in reversed(range(1, 10)):
    print(i)